﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel.Configuration;

namespace Agility.Wcf.ClientProxy
{
    public class CookieManagerBehaviorExtension : BehaviorExtensionElement
    {
        private static readonly NLog.Logger logger = NLog.LogManager.GetCurrentClassLogger();

        public override Type BehaviorType
        {
            get 
            {
                logger.Debug("--> Entering BehaviorType getter");
                logger.Debug("<-- Leaving BehaviorType getter");
                return typeof(CookieManagerEndpointBehavior); 
            }
        }

        protected override object CreateBehavior()
        {
            logger.Debug("--> Entering CreateBehavior");
            logger.Debug("<-- Leaving CreateBehavior");
            return new CookieManagerEndpointBehavior();
        }
    }
}
